package top.makeprogress.taobaospider.export;

import top.makeprogress.taobaospider.Entity.MainOrders;
import top.makeprogress.taobaospider.config.TaobaoSpilderConfig;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.List;

/**
 * @author liuyi
 * @create 2019-10-11 22:00
 **/

public class ExportBuyMessage {
    /**
     * 将list导入excel中
     * @param mainOrders
     * @param excelName
     * @return
     * @throws IOException
     */
    public static Boolean exportBuyMessage(List<MainOrders> mainOrders, String excelName) throws IOException {
        //获取
        String filePath = TaobaoSpilderConfig.getfileExcelBasepath() + excelName;
        File file = new File(filePath);
        OutputStream outputStream = new FileOutputStream(file);
        return true;
    }
}